<template>
  <van-nav-bar :title="title" left-arrow @click-left="onClickLeft" fixed />
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
const onClickLeft = () => {
  router.go(-1);
};
defineProps<{
  title: string;
}>();
</script>

<style scoped>
.van-nav-bar {
  background-color: #ff623a;
}
:deep .van-badge__wrapper {
  color: #fff;
  font-size: 18px;
}
:deep .van-nav-bar__title {
  color: #fff;
}
</style>
